package com.zzyl.nursing.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzyl.nursing.domain.FamilyMemberElder;
import com.zzyl.nursing.dto.FamilyMemberElderDto;
import com.zzyl.nursing.vo.FamilyMemberPageVo;
import com.zzyl.nursing.vo.MyElderVo;
import com.zzyl.nursing.vo.ServicePropertyVo;
import com.zzyl.nursing.vo.PropertyStatusListVo;
import com.zzyl.nursing.dto.QueryDevicePropertyStatusDto;

import java.util.List;

public interface IFamilyMemberElderService extends IService<FamilyMemberElder> {
    void bindElder(FamilyMemberElderDto dto);

    List<MyElderVo> selectMyElderList();

    List<FamilyMemberPageVo> selectFamilyMemberListByPage();

    /**
     * 查询健康数据（新版）
     *
     * @param iotId 设备ID
     * @return 服务属性列表
     */
    List<ServicePropertyVo> queryServiceProperties(String iotId);

    /**
     * 查询设备属性状态（健康数据）- 旧版
     *
     * @param dto 查询参数
     * @return 属性状态列表
     */
    PropertyStatusListVo queryDevicePropertyStatus(QueryDevicePropertyStatusDto dto);

    /**
     * 删除ById
     * @param id
     */
    void deleteById(Long id);
}
